function handleImgUrl(img,domain,path="/uploads/") {
  let ret;
  if (!img) {
    ret = domain + "/api/goods/img/noimg.png";
  } else {
    ret = domain + path + img;
  }
  return ret;
}

module.exports = { handleImgUrl }